package com.yuwei.bean;


import java.util.ArrayList;
import java.util.List;

public class MenusData {
    Integer id;
    String authName;
    String path;
    List<MenusData> children = new ArrayList<>();

    public int getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<MenusData> getChildren() {
        return children;
    }

    public void setChildren(List<MenusData> children) {
        this.children = children;
    }

    public void addMenusData(MenusData menusData)
    {
        children.add(menusData);
    }
    @Override
    public String toString() {
        return "MenusData{" +
                "id=" + id +
                ", authName='" + authName + '\'' +
                ", path='" + path + '\'' +
                ", children=" + children +
                '}';
    }
}
